package design.action.观察者;

import java.util.Observable;
import java.util.Observer;

/**
 * 观察者2
 */
public class Observer2 implements Observer {
    @Override
    public void update(Observable o, Object arg) {
        System.out.println("观察者 2 收到 " + o.hashCode() + "  " + arg);
    }
}
